<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>

<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>

<style type="text/css">
<!--
.mylove .tou{padding-bottom:0px;}
.mylovea.loveit {background: none;}
.picnone{display:none;}
.talkBox .funBox a.a52 {padding-right:20px;_padding-right:12px;}
#emotions{_top:270px!important;*top:450px!important;}
-->
</style>


	<div id="content_m">
	
<div class="layer layer-full">
	<div class="tube tube-a">




<include file="../Goods/goodslist" />






<div class="imagewall_sort clearfix">
<php>if($_GET['tag']){</php>

<h1 class="fl"><php>echo $_GET['tag']</php></h1>
<php>}else{</php>
<h1 class="fl">最新宝贝分享</h1>

<php>}</php>


<php>if($_GET['tag']){</php>
    <div style="margin-left:20px;" class="fl">
        <a>排序：</a>
		<a class="current" href="{:U('home/Goods/index',array('cate'=>urlencode($_GET['cate']),'tag'=>urlencode($_GET['tag'])))}">最新</a>
		<a  href="{:U('home/Goods/hot',array('cate'=>urlencode($_GET['cate']),'tag'=>urlencode($_GET['tag'])))}">潮流</a>
		<a href="{:U('home/Goods/recommend')}">本周推荐</a>
		
		</div>
	<div class="display">
			<a href="{:U('home/Goods/index',array('cate'=>urlencode($_GET['cate']),'tag'=>urlencode($_GET['tag'])))}" class="list"></a>
			<a href="{:U('home/Look/index',array('cate'=>urlencode($_GET['cate']),'tag'=>urlencode($_GET['tag'])))}" class="pic"></a>
		</div>
<php>}else{</php>
 <div style="margin-left:20px;" class="fl">
        <a>排序：</a>
		<a class="current" href="{:U('home/Goods/index')}">最新</a>
		<a href="{:U('home/Goods/hot')}">潮流</a>
		<a href="{:U('home/Goods/recommend')}">本周推荐</a>
		</div>
	<div class="display">
			<a href="{:U('home/Goods/index')}" class="list"></a>
			<a href="{:U('home/Look/index')}" class="pic"></a>
		</div>

<php>}</php>
		

       
    
</div>

	
	
		
		<!-- block end -->
		<div class="block">
			<div class="trib-pp dym-area" style="width: 976px; ">	
<div id="allmydym" class="dym-dl" pagecount="" hasnext="">	
<php>if(!$data){</php>
<div class="top_tags_ft2"></div>

<div class="nodetails">Sorry! 当前页面暂无宝贝，<a href="{:U('home/Goods/index')}">返回首页 >></a></div>

<div class="top_tags_ft"></div>
<php>}</php>
<volist id="vo" name="data">
<?php
$data=unserialize($vo['type_data']);

?>
<div class="dym-dd even" orginid="6638666"><div class="dtype dtype-1"><div class="mbpho"><a class="mbphoa" id="{$vo.weibo_id}" target="_blank" href="{:U('home/Look/detail',array('id'=>$vo['weibo_id']))}"><img src="{$data.picurl}"></a>
<span class="jiage">
                         ￥{$data.price}
                        </span>





</div><div class="blogstat "><a target="_blank" href="{:U('home/Look/detail',array('id'=>$vo['weibo_id']))}" class="rvta">{$data.g_title}</a></div><div class="downer gray graylk">

<div class="clearfix mylove">
				 <span class="lovet">
						  <php>if(favisloveno($vo['weibo_id'])=='2'){</php>
                          
                            <a w="f" href="javascript:void(0)" onclick="ui.loveok(this,'1','{$vo.favcount}','{$vo.weibo_id}',{$mid},'{$mid|getUserFace}')" callback="weibo.deletfav({$vo.weibo_id})" class="loveit" id="favloe_{$vo.weibo_id}"><b class="nums"><span class="favCount" id="fav_{$vo.weibo_id}">{$vo.favcount}</span></b>喜欢</a>
                            
                             <php>}else{</php>
		            <a w="f" href="javascript:void(0)" onclick="ui.loveok(this,'1','{$vo.favcount}','{$vo.weibo_id}',{$mid},'{$mid|getUserFace}')" callback="weibo.deletfav({$vo.weibo_id})" class="loveit"  id="favloe_{$vo.weibo_id}"><b class="nums"><span class="favCount" id="fav_{$vo.weibo_id}">{$vo.favcount}</span></b>已喜欢</a>
                          			 
                            <php>}</php>
							</span>
							
														<span><a href="{:U('home/Look/detail',array('id'=>$vo['weibo_id']))}" class="discuss"><b class="nums">{$vo.comment}</b>评论</a>
		
			<span class="tou" id="favicon_{$vo.weibo_id}"> </span>
			
			</span></div>

		<div class="padding20">
		<div class="userPic2"><space uid="vo.uid">{uavatar}</space></div><space uid="vo.uid" >{uname}</space><br />
<span class="gray">{$vo.ctime|friendlyDate}</span>
		</div>
		</div>
		
		</div></div>
		
		</volist>
		</div>
			</div>
			<!-- trib-pp end -->
			<div class="seemore tr mt8 f14">
			<p class="pager">
				<php>
		if(!$_GET['page']){
		$page=1;
		}else{
		$page= $_GET['page'];
		}
                $has_pre   = $page > 1;
                $has_after = count($list);
            </php>
			
			
				 <php>if($has_pre) {</php>
				 <php>if($_GET['tag']){</php>
				 
            <a href="{:U('home/Goods/index',array('tag'=>$_GET['tag'],'page'=>$page-1))}">上一页</a> 
			
			<php>}else{</php>
			<a href="{:U('home/Goods/index',array('page'=>$page-1))}">上一页</a> 
			
			<php>}</php>
            <php>}</php> 
			<span class="current"><php>echo $page </php></span>
            <php>if($has_after>=40) {</php>
			
			
			<php>if($_GET['tag']){</php>
				 
            <a href="{:U('home/Goods/index',array('tag'=>$_GET['tag'],'page'=>$page+1))}">下一页</a> 
			
			<php>}else{</php>
			<a href="{:U('home/Goods/index',array('page'=>$page+1))}">下一页</a> 
			
			<php>}</php>
			
			
            <php>}</php>
              跳转至: <input type="text" size="3" id="pages"/><input type="button" value="前往" onclick="do_page()"/>

</p>
			</div>
			
		</div>
	
<script>	
function do_page(){
var page=$('#pages').val();

var tag="{$_GET['tag']}";
if(tag){
top.location='{:U("home/Goods/index",array("tag"=>"'+tag+'","page"=>"'+page+'"))}';
}else{

top.location='{:U("home/Goods/index",array("page"=>"'+page+'"))}';



}

}

</script>
</div>
</div>
</div>

<include file="__THEME__/footer" /> 

